// @ts-ignore
/* eslint-disable */
import { request } from '@umijs/max';

/** addServiceProject POST /api/serviceProject/add */
export async function addServiceProjectUsingPost(
  body: API.ServiceProjectAddRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/serviceProject/add', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** doServiceProjectClick GET /api/serviceProject/click */
export async function doServiceProjectClickUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.doServiceProjectClickUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseLong_>('/api/serviceProject/click', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** dayNewlyAddedServiceProject POST /api/serviceProject/day/newly/added */
export async function dayNewlyAddedServiceProjectUsingPost(options?: { [key: string]: any }) {
  return request<API.BaseResponseListDataGroupByDateDTO_>('/api/serviceProject/day/newly/added', {
    method: 'POST',
    ...(options || {}),
  });
}

/** deleteServiceProject POST /api/serviceProject/delete */
export async function deleteServiceProjectUsingPost(
  body: API.DeleteRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/serviceProject/delete', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** editServiceProject POST /api/serviceProject/edit */
export async function editServiceProjectUsingPost(
  body: API.ServiceProjectEditRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/serviceProject/edit', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** getServiceProjectVOById GET /api/serviceProject/get/vo */
export async function getServiceProjectVoByIdUsingGet(
  // 叠加生成的Param类型 (非body参数swagger默认没有生成对象)
  params: API.getServiceProjectVOByIdUsingGETParams,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseServiceProjectVO_>('/api/serviceProject/get/vo', {
    method: 'GET',
    params: {
      ...params,
    },
    ...(options || {}),
  });
}

/** listServiceProjectByPage POST /api/serviceProject/list/page */
export async function listServiceProjectByPageUsingPost(
  body: API.ServiceProjectQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageServiceProject_>('/api/serviceProject/list/page', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listServiceProjectVOByPage POST /api/serviceProject/list/page/vo */
export async function listServiceProjectVoByPageUsingPost(
  body: API.ServiceProjectQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageServiceProjectVO_>('/api/serviceProject/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** listMyServiceProjectVOByPage POST /api/serviceProject/my/list/page/vo */
export async function listMyServiceProjectVoByPageUsingPost(
  body: API.ServiceProjectQueryRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponsePageServiceProjectVO_>('/api/serviceProject/my/list/page/vo', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}

/** updateServiceProject POST /api/serviceProject/update */
export async function updateServiceProjectUsingPost(
  body: API.ServiceProjectUpdateRequest,
  options?: { [key: string]: any },
) {
  return request<API.BaseResponseBoolean_>('/api/serviceProject/update', {
    method: 'POST',
    headers: {
      'Content-Type': 'application/json',
    },
    data: body,
    ...(options || {}),
  });
}
